import {secklist} from '../../../request/api'

const state = {
    seckList:[]
}

const getters = {
    getSeck(state){
        return state.seckList
    }
}

const mutations = {
    CHANGESECK(state,payload){
        state.seckList = payload
    }
}

const actions = {
    GetSeckInfo(context){
        secklist()
        .then(res=>{
            if(res.code==200){
                console.log(res);
                context.commit('CHANGESECK',res.list)
            }
        })
    }
}

export default {
    state,
    getters,
    mutations,
    actions,
    namespaced:true
}